package com.wyhello.tube4.spring.model;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.wyhello.tube4.facade.TubeFacade;
import com.wyhello.tube4.pojo.Macroscopic;
/**
 * 维护记录信息
 * @author Administrator
 *
 */

public class MaintenanceRecordsModel {
	
	@Autowired
	private TubeFacade facade;

	public TubeFacade getFacade() {
		return facade;
	}

	public void setFacade(TubeFacade facade) {
		this.facade = facade;
	}
	/**
	 * 宏观测量信息的录入
	 * @param macroscopic
	 * @return
	 * 信息录入是否成功
	 */
	public boolean saveMacroscopic(Macroscopic macroscopic){
		return facade.saveMacroscopic(macroscopic);
	}
	public int deleteMacroscopic(String ids){
		return facade.deleteMacroscopic(ids);
	}
	public boolean updateMacroscopic(Macroscopic macroscopic){
		return facade.updateMacroscopic(macroscopic);
	}
	public Macroscopic getrMacroscopic(int id){
		return facade.getMacroscopicById(id);
	}
	public List<Macroscopic> queryMacroscopic(int offset){
		return facade.queryMacroscopic(offset);
	}
	public List<Macroscopic> queryMacTime(int offset,String begin,String end){
		return facade.queryMacTime(offset, begin, end);
	}
}
